/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.esiag.servlets;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

/**
 *
 * @author assia
 */
public class test {

    public static void main(String[] args) {
        /*   Date d = new Date();
        d.mondayOfWeek(new Date("03/05/2012"));
        d.saturdayOfWeek(new Date("03/07/2012"));
        d.numberOfWeek(new Date("03/07/2012"));
        d.nextWeek(new Date());
        d.nextWeek(new Date("03/16/2012"));
        d.lastWeek(new Date());
        System.out.println("hello");
        d.lastWeek(new Date("02/12/2012"));
         
         * 
         */
        
        
        java.util.Date d1= new Date();
        System.out.println("this week is"+d1);
         java.util.Date d0=(java.util.Date) DateUtil.mondayOfWeek(d1);
         
        System.out.println("lun di "+d0);
        java.util.Date d=(java.util.Date) DateUtil.lastWeek(d1);
        System.out.println("laste wekk is"+d);
        System.out.println("date converti " + DateUtil.stringToDate("2012-02-27"));
        
               
        System.out.println("laste wekk is"+DateUtil.lastWeek(d));
     /*  java.util.Date d=(java.util.Date) DateUtil.mardi(d1);
        System.out.println("mardiiiii"+d);
        
          java.util.Date d0=(java.util.Date) DateUtil.mercredi(d1);
        System.out.println("mercredi"+d0);
        
          java.util.Date d2=(java.util.Date) DateUtil.jeudi(d1);
        System.out.println("jeudi"+d2);
        
          java.util.Date d3=(java.util.Date) DateUtil.vendredi(d1);
        System.out.println("vendredi"+d3);
        
          java.util.Date d4=(java.util.Date) DateUtil.samedi(d1);
        System.out.println("samedi"+d4);
  
  */
          
 
 
    }
}

